<?php
class CmsAction extends Action{

	private $aboutus;
	private $agreement;
	private $convert;
	public function _initialize(){
		
		$this->aboutus = model("Xdata")->getConfig("content","aboutus","admin_Cms");
		$this->agreement = model("Xdata")->getConfig("content","agreement","admin_Cms");
		$this->convert = model("Xdata")->getConfig("content","convert","admin_Cms");
	}
	
	
	public function getCms(){//【获取制定cms内容】
		$type = dt($_REQUEST['type']);
		$html = '<div style="padding:0 5px;">';
		if($type == 'aboutus'){//关于我们
			$html .= $this->aboutus;
		}elseif($type == 'agreement'){//用户协议
			$html .= $this->agreement;
		}elseif($type == 'convert'){//积分兑换规则
			$html .= $this->convert;
		}else{
			$html .= '';
		}
		$html .= '</div>';
		
		die($html);
	
	}




}